package tsvetanv.inventory.util.dao;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

/**
 * The abstract <code>CustomHibernateDaoSupport</code> class is a Spring
 * <code>DAOSupport</code> class where <code>a Hibernate session factory</code>
 * is injected. This class is implemented by particular DAO implementation classes.
 * 
 * @author Tsvetan Vasilev
 * 
 */
public abstract class CustomHibernateDaoSupport extends HibernateDaoSupport {
	@Autowired
	public void loadSessionFactory(SessionFactory sessionFactory) {
		setSessionFactory(sessionFactory);
	}
}